//
//  UIButton+Block.h
//  fmapp
//
//  Created by zhouyang on 14-8-29.
//  Copyright (c) 2014年 CheDong Technology Co., Ltd. All rights reserved.
//

#import <UIKit/UIKit.h>

#import <Foundation/Foundation.h>
#import <objc/runtime.h>


typedef void (^ActionBlock)();

typedef void (^SelectActionBlock)(BOOL b);

@interface UIButton(Block)

@property (readonly) NSMutableDictionary *event;

- (void) handleControlEvent:(UIControlEvents)controlEvent withBlock:(ActionBlock)action;

- (void) handleControlEvent:(UIControlEvents)controlEvent withSelectBlock:(SelectActionBlock)action;

@end